package com.tuo51.evaluate.repositories.appusers;

import com.tuo51.evaluate.domain.appusers.Vip;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface VipRepository extends JpaRepository<Vip, Long>, JpaSpecificationExecutor<Vip> {

    Page<Vip> findAllByOrderByTypeAscPriceDescValueDesc(Pageable pageable);

}
